package homework.homework2;

public class Director {
    private CarBulider cb;

    public Director(){}

    public Director(CarBulider cb){
        this.cb = cb;
    }

    public Car construct(){
        cb.buildEngine();
        cb.buildWheel();
        cb.buildCarWheel();
        cb.buildCarBody();
        cb.buildPaintCar();
        return cb.bulieCar();
    }
}
